package csc.daonjpa.java.serviceimpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import csc.daonjpa.java.beans.CustomerBean;
import csc.daonjpa.java.dao.CustomerDAO;
import csc.daonjpa.java.domain.Customer;
import csc.daonjpa.java.service.CustomerService;

@Service("CustomerService")
public class CustomerServiceImpl implements CustomerService {

	@Autowired
	CustomerDAO customerDao;
	
	public CustomerDAO getCustomerDao() {
		return customerDao;
	}

	public void setCustomerDao(CustomerDAO customerDao) {
		this.customerDao = customerDao;
	}

	@Override
	public boolean authentication(CustomerBean customer) {
		return customerDao.authentication(customer);
	}

}
